3.880 \(\int \frac{(f+g x)^2}{(d+e x) (a+b x+c x^2)^{3/2}} \, dx\)
Optimal. Leaf size=240 \[ \frac{2 \left (-x \left (c (2 a g (2 e f-d g)-b f (2 d g+e f))+b g^2 (b d-a e)+2 c^2 d f^2\right )-b \left (a g (d g+2 e f)+c d f^2\right )+2 a \left (a e g^2-c f (e f-2 d g)\right )+b^2 e f^2\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} \left (a e^2-b d e+c d^2\right )}+\frac{(e f-d g)^2 \tanh ^{-1}\left (\frac{-2 a e+x (2 c d-b e)+b d}{2 \sqrt{a+b x+c x^2} \sqrt{a e^2-b d e+c d^2}}\right )}{\left (a e^2-b d e+c d^2\right )^{3/2}} \]
[Out]
(2*(b^2*e*f^2 + 2*a*(a*e*g^2 - c*f*(e*f - 2*d*g)) - b*(c*d*f^2 + a*g*(2*e*f + d*g)) - (2*c^2*d*f^2 + b*(b*d -
a*e)*g^2 + c*(2*a*g*(2*e*f - d*g) - b*f*(e*f + 2*d*g)))*x))/((b^2 - 4*a*c)*(c*d^2 - b*d*e + a*e^2)*Sqrt[a + b*
x + c*x^2]) + ((e*f - d*g)^2*ArcTanh[(b*d - 2*a*e + (2*c*d - b*e)*x)/(2*Sqrt[c*d^2 - b*d*e + a*e^2]*Sqrt[a + b
*x + c*x^2])])/(c*d^2 - b*d*e + a*e^2)^(3/2)
________________________________________________________________________________________
Rubi [A] time = 0.305313, antiderivative size = 240, normalized size of antiderivative = 1.,
number of steps used = 4, number of rules used = 4, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.138, Rules used =
{1646, 12, 724, 206} \[ \frac{2 \left (-x \left (c (2 a g (2 e f-d g)-b f (2 d g+e f))+b g^2 (b d-a e)+2 c^2 d f^2\right )-b \left (a g (d g+2 e f)+c d f^2\right )+2 a \left (a e g^2-c f (e f-2 d g)\right )+b^2 e f^2\right )}{\left (b^2-4 a c\right ) \sqrt{a+b x+c x^2} \left (a e^2-b d e+c d^2\right )}+\frac{(e f-d g)^2 \tanh ^{-1}\left (\frac{-2 a e+x (2 c d-b e)+b d}{2 \sqrt{a+b x+c x^2} \sqrt{a e^2-b d e+c d^2}}\right )}{\left (a e^2-b d e+c d^2\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
Int[(f + g*x)^2/((d + e*x)*(a + b*x + c*x^2)^(3/2)),x]
[Out]
(2*(b^2*e*f^2 + 2*a*(a*e*g^2 - c*f*(e*f - 2*d*g)) - b*(c*d*f^2 + a*g*(2*e*f + d*g)) - (2*c^2*d*f^2 + b*(b*d -
a*e)*g^2 + c*(2*a*g*(2*e*f - d*g) - b*f*(e*f + 2*d*g)))*x))/((b^2 - 4*a*c)*(c*d^2 - b*d*e + a*e^2)*Sqrt[a + b*
x + c*x^2]) + ((e*f - d*g)^2*ArcTanh[(b*d - 2*a*e + (2*c*d - b*e)*x)/(2*Sqrt[c*d^2 - b*d*e + a*e^2]*Sqrt[a + b
*x + c*x^2])])/(c*d^2 - b*d*e + a*e^2)^(3/2)
Rule 1646
Int[(Pq_)*((d_.) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> With[{Q = Polynomi
alQuotient[(d + e*x)^m*Pq, a + b*x + c*x^2, x], f = Coeff[PolynomialRemainder[(d + e*x)^m*Pq, a + b*x + c*x^2,
x], x, 0], g = Coeff[PolynomialRemainder[(d + e*x)^m*Pq, a + b*x + c*x^2, x], x, 1]}, Simp[((b*f - 2*a*g + (2
*c*f - b*g)*x)*(a + b*x + c*x^2)^(p + 1))/((p + 1)*(b^2 - 4*a*c)), x] + Dist[1/((p + 1)*(b^2 - 4*a*c)), Int[(d
+ e*x)^m*(a + b*x + c*x^2)^(p + 1)*ExpandToSum[((p + 1)*(b^2 - 4*a*c)*Q)/(d + e*x)^m - ((2*p + 3)*(2*c*f - b*
g))/(d + e*x)^m, x], x], x]] /; FreeQ[{a, b, c, d, e}, x] && PolyQ[Pq, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2
- b*d*e + a*e^2, 0] && LtQ[p, -1] && ILtQ[m, 0]
Rule 12
Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] && !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]
Rule 724
Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[-2, Subst[Int[1/(4*c*d
^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, (2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a,
b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[2*c*d - b*e, 0]
Rule 206
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rubi steps
\begin{align*} \int \frac{(f+g x)^2}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx &=\frac{2 \left (b^2 e f^2+2 a \left (a e g^2-c f (e f-2 d g)\right )-b \left (c d f^2+a g (2 e f+d g)\right )-\left (2 c^2 d f^2+b (b d-a e) g^2+c (2 a g (2 e f-d g)-b f (e f+2 d g))\right ) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt{a+b x+c x^2}}-\frac{2 \int -\frac{\left (b^2-4 a c\right ) (e f-d g)^2}{2 \left (c d^2-b d e+a e^2\right ) (d+e x) \sqrt{a+b x+c x^2}} \, dx}{b^2-4 a c}\\ &=\frac{2 \left (b^2 e f^2+2 a \left (a e g^2-c f (e f-2 d g)\right )-b \left (c d f^2+a g (2 e f+d g)\right )-\left (2 c^2 d f^2+b (b d-a e) g^2+c (2 a g (2 e f-d g)-b f (e f+2 d g))\right ) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt{a+b x+c x^2}}+\frac{(e f-d g)^2 \int \frac{1}{(d+e x) \sqrt{a+b x+c x^2}} \, dx}{c d^2-b d e+a e^2}\\ &=\frac{2 \left (b^2 e f^2+2 a \left (a e g^2-c f (e f-2 d g)\right )-b \left (c d f^2+a g (2 e f+d g)\right )-\left (2 c^2 d f^2+b (b d-a e) g^2+c (2 a g (2 e f-d g)-b f (e f+2 d g))\right ) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt{a+b x+c x^2}}-\frac{\left (2 (e f-d g)^2\right ) \operatorname{Subst}\left (\int \frac{1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac{-b d+2 a e-(2 c d-b e) x}{\sqrt{a+b x+c x^2}}\right )}{c d^2-b d e+a e^2}\\ &=\frac{2 \left (b^2 e f^2+2 a \left (a e g^2-c f (e f-2 d g)\right )-b \left (c d f^2+a g (2 e f+d g)\right )-\left (2 c^2 d f^2+b (b d-a e) g^2+c (2 a g (2 e f-d g)-b f (e f+2 d g))\right ) x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt{a+b x+c x^2}}+\frac{(e f-d g)^2 \tanh ^{-1}\left (\frac{b d-2 a e+(2 c d-b e) x}{2 \sqrt{c d^2-b d e+a e^2} \sqrt{a+b x+c x^2}}\right )}{\left (c d^2-b d e+a e^2\right )^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.693444, size = 265, normalized size = 1.1 \[ \frac{2 \left (-2 a^2 e g^2+a b g (d g+2 e f-e g x)-2 a c d g (2 f+g x)+2 a c e f (f+2 g x)+b^2 \left (d g^2 x-e f^2\right )+b c f (d (f-2 g x)-e f x)+2 c^2 d f^2 x\right )}{\left (b^2-4 a c\right ) \sqrt{a+x (b+c x)} \left (e (b d-a e)-c d^2\right )}-\frac{(e f-d g)^2 \log \left (2 \sqrt{a+x (b+c x)} \sqrt{a e^2-b d e+c d^2}+2 a e-b d+b e x-2 c d x\right )}{\left (e (a e-b d)+c d^2\right )^{3/2}}+\frac{(e f-d g)^2 \log (d+e x)}{\left (e (a e-b d)+c d^2\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
Integrate[(f + g*x)^2/((d + e*x)*(a + b*x + c*x^2)^(3/2)),x]
[Out]
(2*(-2*a^2*e*g^2 + 2*c^2*d*f^2*x - 2*a*c*d*g*(2*f + g*x) + 2*a*c*e*f*(f + 2*g*x) + a*b*g*(2*e*f + d*g - e*g*x)
+ b^2*(-(e*f^2) + d*g^2*x) + b*c*f*(-(e*f*x) + d*(f - 2*g*x))))/((b^2 - 4*a*c)*(-(c*d^2) + e*(b*d - a*e))*Sqr
t[a + x*(b + c*x)]) + ((e*f - d*g)^2*Log[d + e*x])/(c*d^2 + e*(-(b*d) + a*e))^(3/2) - ((e*f - d*g)^2*Log[-(b*d
) + 2*a*e - 2*c*d*x + b*e*x + 2*Sqrt[c*d^2 - b*d*e + a*e^2]*Sqrt[a + x*(b + c*x)]])/(c*d^2 + e*(-(b*d) + a*e))
^(3/2)
________________________________________________________________________________________
Maple [B] time = 0.263, size = 2123, normalized size = 8.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((g*x+f)^2/(e*x+d)/(c*x^2+b*x+a)^(3/2),x)
[Out]
4/e^2/(a*e^2-b*d*e+c*d^2)/(4*a*c-b^2)/((d/e+x)^2*c+(b*e-2*c*d)/e*(d/e+x)+(a*e^2-b*d*e+c*d^2)/e^2)^(1/2)*x*c^2*
d^3*g^2+e/(a*e^2-b*d*e+c*d^2)/((d/e+x)^2*c+(b*e-2*c*d)/e*(d/e+x)+(a*e^2-b*d*e+c*d^2)/e^2)^(1/2)*f^2-g^2/e/c/(c
*x^2+b*x+a)^(1/2)-1/e/(a*e^2-b*d*e+c*d^2)/(4*a*c-b^2)/((d/e+x)^2*c+(b*e-2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e+c*d^2)/e^2+(b*e-2*c*d)/e*(d/e+x)+2*((a*e^2-b*d*e+c*d^2)/e^2)^(1/2)*((d/
e+x)^2*c+(b*e-2*c*d)/e*(d/e+x)+(a*e^2-b*d*e+c*d^2)/e^2)^(1/2))/(d/e+x))*d*f*g-e/(a*e^2-b*d*e+c*d^2)/(4*a*c-b^2
)/((d/e+x)^2*c+(b*e-2*c*d)/e*(d/e+x)+(a*e^2-b*d*e+c*d^2)/e^2)^(1/2)*b^2*f^2
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((g*x+f)^2/(e*x+d)/(c*x^2+b*x+a)^(3/2),x, algorithm="maxima")
[Out]
Exception raised: ValueError
________________________________________________________________________________________
Fricas [B] time = 44.006, size = 4150, normalized size = 17.29 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((g*x+f)^2/(e*x+d)/(c*x^2+b*x+a)^(3/2),x, algorithm="fricas")
[Out]
[1/2*(((a*b^2 - 4*a^2*c)*e^2*f^2 - 2*(a*b^2 - 4*a^2*c)*d*e*f*g + (a*b^2 - 4*a^2*c)*d^2*g^2 + ((b^2*c - 4*a*c^2
)*e^2*f^2 - 2*(b^2*c - 4*a*c^2)*d*e*f*g + (b^2*c - 4*a*c^2)*d^2*g^2)*x^2 + ((b^3 - 4*a*b*c)*e^2*f^2 - 2*(b^3 -
4*a*b*c)*d*e*f*g + (b^3 - 4*a*b*c)*d^2*g^2)*x)*sqrt(c*d^2 - b*d*e + a*e^2)*log((8*a*b*d*e - 8*a^2*e^2 - (b^2
+ 4*a*c)*d^2 - (8*c^2*d^2 - 8*b*c*d*e + (b^2 + 4*a*c)*e^2)*x^2 - 4*sqrt(c*d^2 - b*d*e + a*e^2)*sqrt(c*x^2 + b*
x + a)*(b*d - 2*a*e + (2*c*d - b*e)*x) - 2*(4*b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*c - 8*a^3*c^2)*d^2*e^2 - 2*(a^2*b^3 - 4*a^3*b*c)*d*e^3 + (a^3*b^2 - 4*a^4*c)*e^4 + ((b^2*c^3 - 4*a*c
^4)*d^4 - 2*(b^3*c^2 - 4*a*b*c^3)*d^3*e + (b^4*c - 2*a*b^2*c^2 - 8*a^2*c^3)*d^2*e^2 - 2*(a*b^3*c - 4*a^2*b*c^2
)*d*e^3 + (a^2*b^2*c - 4*a^3*c^2)*e^4)*x^2 + ((b^3*c^2 - 4*a*b*c^3)*d^4 - 2*(b^4*c - 4*a*b^2*c^2)*d^3*e + (b^5
- 2*a*b^3*c - 8*a^2*b*c^2)*d^2*e^2 - 2*(a*b^4 - 4*a^2*b^2*c)*d*e^3 + (a^2*b^3 - 4*a^3*b*c)*e^4)*x)]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((g*x+f)**2/(e*x+d)/(c*x**2+b*x+a)**(3/2),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [B] time = 1.17985, size = 1022, normalized size = 4.26 \begin{align*} -\frac{2 \,{\left (\frac{{\left (2 \, c^{3} d^{3} f^{2} - 2 \, b c^{2} d^{3} f g + b^{2} c d^{3} g^{2} - 2 \, a c^{2} d^{3} g^{2} - 3 \, b c^{2} d^{2} f^{2} e + 2 \, b^{2} c d^{2} f g e + 4 \, a c^{2} d^{2} f g e - b^{3} d^{2} g^{2} e + a b c d^{2} g^{2} e + b^{2} c d f^{2} e^{2} + 2 \, a c^{2} d f^{2} e^{2} - 6 \, a b c d f g e^{2} + 2 \, a b^{2} d g^{2} e^{2} - 2 \, a^{2} c d g^{2} e^{2} - a b c f^{2} e^{3} + 4 \, a^{2} c f g e^{3} - a^{2} b g^{2} e^{3}\right )} x}{b^{2} c^{2} d^{4} - 4 \, a c^{3} d^{4} - 2 \, b^{3} c d^{3} e + 8 \, a b c^{2} d^{3} e + b^{4} d^{2} e^{2} - 2 \, a b^{2} c d^{2} e^{2} - 8 \, a^{2} c^{2} d^{2} e^{2} - 2 \, a b^{3} d e^{3} + 8 \, a^{2} b c d e^{3} + a^{2} b^{2} e^{4} - 4 \, a^{3} c e^{4}} + \frac{b c^{2} d^{3} f^{2} - 4 \, a c^{2} d^{3} f g + a b c d^{3} g^{2} - 2 \, b^{2} c d^{2} f^{2} e + 2 \, a c^{2} d^{2} f^{2} e + 6 \, a b c d^{2} f g e - a b^{2} d^{2} g^{2} e - 2 \, a^{2} c d^{2} g^{2} e + b^{3} d f^{2} e^{2} - a b c d f^{2} e^{2} - 2 \, a b^{2} d f g e^{2} - 4 \, a^{2} c d f g e^{2} + 3 \, a^{2} b d g^{2} e^{2} - a b^{2} f^{2} e^{3} + 2 \, a^{2} c f^{2} e^{3} + 2 \, a^{2} b f g e^{3} - 2 \, a^{3} g^{2} e^{3}}{b^{2} c^{2} d^{4} - 4 \, a c^{3} d^{4} - 2 \, b^{3} c d^{3} e + 8 \, a b c^{2} d^{3} e + b^{4} d^{2} e^{2} - 2 \, a b^{2} c d^{2} e^{2} - 8 \, a^{2} c^{2} d^{2} e^{2} - 2 \, a b^{3} d e^{3} + 8 \, a^{2} b c d e^{3} + a^{2} b^{2} e^{4} - 4 \, a^{3} c e^{4}}\right )}}{\sqrt{c x^{2} + b x + a}} + \frac{2 \,{\left (d^{2} g^{2} - 2 \, d f g e + f^{2} e^{2}\right )} \arctan \left (-\frac{{\left (\sqrt{c} x - \sqrt{c x^{2} + b x + a}\right )} e + \sqrt{c} d}{\sqrt{-c d^{2} + b d e - a e^{2}}}\right )}{{\left (c d^{2} - b d e + a e^{2}\right )} \sqrt{-c d^{2} + b d e - a e^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((g*x+f)^2/(e*x+d)/(c*x^2+b*x+a)^(3/2),x, algorithm="giac")
[Out]
-2*((2*c^3*d^3*f^2 - 2*b*c^2*d^3*f*g + b^2*c*d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